package com.zking.service.impl.ly;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zking.dao.domain.Post;
import com.zking.dao.mapper.ly.PositionsMapper;
import com.zking.service.ly.PositionsService;

@Service
public class PositionsServiceImpl implements PositionsService{
	@Autowired
	PositionsMapper pm;
	//查询集合
	@Override
	public List<Post> sees(Post ps) {
		List<Post> lp =  pm.sees(ps);
		return lp;
	}
	//查询一条数据
	@Override
	public Post see(int id) {
		Post j = pm.see(id);
		return j;
	}
	//修改
	@Override
	public int up(Post ps) {
		int i = pm.up(ps);
		return i;
	}
	//删除
	@Override
	public int de(int id) {
		int x = pm.de(id);
		return x;
	}
}
